Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to compounding when consolidating with source==target #14463

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

terencechain
Copy link
Member

This PR modifies the handling of switching validators to compounding credentials by consolidating the logic into the process_consolidation_request flow. Key code changes include:

  • Removed switch_to_compounding_validator from process_pending_consolidations.
  • Removed switch_to_compounding_validator from apply_deposit.
  • Added a helper function is_valid_switch_to_compounding_request.
  • Updated process_consolidation_request to check is_valid_switch_to_compounding_request, and if valid, switch the source index validator to compounding.
  • Updated process_consolidation_request to automatically switch the target validator to compounding if it has an eth1 credential.

Reference: ethereum/consensus-specs#3918

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant